package controllers;

import com.google.gwt.thirdparty.javascript.jscomp.SymbolTable.Symbol;

import GUI.CustomerGui;
import GUI.LoginGUI;
import entity.User;

public class CustomerController {
	
	User user;
	CustomerGui customerWindow;
	
	public CustomerController(){
		
	}
	
	public CustomerController(User user){
		System.out.println("in customer controller");  //for check
	this.user=user;
	}

public void activateGUI(){
		
		System.out.println("Open Customer: " +user.getFname() + "Window");
		customerWindow= new CustomerGui();
		LoginGUI loginWindow= new LoginGUI();
		loginWindow.setVisible(false);
				customerWindow.setVisible(true);
	}

}